package org.gwc.Controller;

import org.gwc.pojo.Student;
import org.gwc.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class StudnetController {

    @Autowired
    private StudentService studentService;

    public void queryAll(){
        List<Student> students = studentService.queryAll();
        System.out.println("students: "+students);
    }
}
